package com.dcpai.datafactory;

import android.content.Context;

/**
 * Created by Administrator on 2016/7/29.
 */
public class DcpaiDataFactory {
    private static DcpaiDataFactory mInstance;
    private Context mContext;
    private CatchDataTaskQueue mTaskQueue;

    private DcpaiDataFactory(Context context){
        mContext = context;
        mTaskQueue = new CatchDataTaskQueue();
    }

    public static DcpaiDataFactory getInstance(Context context){
        if(mInstance == null){
            synchronized (DcpaiDataFactory.class) {
                if(mInstance == null){
                    mInstance = new DcpaiDataFactory(context);
                }
            }
        }
        return mInstance;
    }
}
